package com.hypo.business.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 产品表，用于存储对接华为云IoT平台的产品信息
 * </p>
 *
 * @author author
 * @since 2025-09-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_product")
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 华为云应用ID，对应appId
     */
    private String appId;

    /**
     * 华为云应用名称，对应appName
     */
    private String appName;

    /**
     * 产品ID，对应productId
     */
    private String productId;

    /**
     * 产品名称，对应name
     */
    private String name;

    /**
     * 设备类型，对应deviceType
     */
    private String deviceType;

    /**
     * 产品描述，对应description
     */
    private String description;

    /**
     * 创建时间，对应createTime
     */
    private LocalDateTime createTime;


}
